package net.ericaro.neojavagen.expressions;

/**
 * <b>EqualityExpression</b> ::= <{@link net .ericaro .neojavagen .expressions .RelationalExpression RelationalExpression}> <
 * {@link net .ericaro .neojavagen .expressions .EqualityExpressionRest EqualityExpressionRest}>?
 * 
 * @author eric@ericaro.net
 */
public class EqualityExpression extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.expressions.EqualityExpressionRest equalityExpressionRest;

	private net.ericaro.neojavagen.expressions.RelationalExpression relationalExpression;

	public EqualityExpression(net.ericaro.neojavagen.expressions.RelationalExpression relationalExpression) {
		this.relationalExpression = relationalExpression;
		this.equalityExpressionRest = null;
	}

	public EqualityExpression(net.ericaro.neojavagen.expressions.RelationalExpression relationalExpression, net.ericaro.neojavagen.expressions.EqualityExpressionRest equalityExpressionRest) {
		super();
		this.relationalExpression = relationalExpression;
		this.equalityExpressionRest = equalityExpressionRest;
	}

	public net.ericaro.neojavagen.expressions.EqualityExpressionRest getEqualityExpressionRest() {
		return equalityExpressionRest;
	}

	public net.ericaro.neojavagen.expressions.RelationalExpression getRelationalExpression() {
		return relationalExpression;
	}

	public void setEqualityExpressionRest(net.ericaro.neojavagen.expressions.EqualityExpressionRest equalityExpressionRest) {
		this.equalityExpressionRest = equalityExpressionRest;
	}

	public void setRelationalExpression(net.ericaro.neojavagen.expressions.RelationalExpression relationalExpression) {
		this.relationalExpression = relationalExpression;
	}

	@Override
	public java.lang.String toString() {
		return print(relationalExpression, equalityExpressionRest);
	}
}
